<?php
//整数的多种表现形式
echo 12345,"\n";
echo 0b1011,"\n";
echo 0567,"\n";
echo 0x2AF,"\n";
//算数运算符
echo 18%5,"\n";
echo 18 / 5, "\n";
echo@(18.9 % 5.8), "\n";
echo 3**2.5,"\n";
//运算符优先级
echo 5-6*2,"\n";
//预算符的结合性
echo 8/4*2,"\n";//从左到右计算
echo -3**2,"\n";//()的优先级是最高的
//不同类型数据间的算数运算
echo '2000'+123,"\n";
echo '123'+'2000',"\n";
echo '-123'+'2000',"\n";
echo '123'+'0o2000',"\n";
echo '-123'+'0x2000',"\n";
echo 123+'2000',"\n";
echo '2e2'+'2000',"\n";//2e2就是200
echo NULL+'2000',"\n";
echo false+'2000',"\n";
echo true+'2000',"\n";